package com.bjpowernode.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 权限表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TPermission {
    private Integer id;

    private String name;

    private String code;

    private String url;

    private String type;

    private Integer parentId;

    private Integer orderNo;

    /**
    * 菜单图标
    */
    private String icon;

    /**
    * 菜单对应要渲染的Vue组件名称
    */
    private String component;

    /**
     * 一对多关系
     */
    private List<TPermission> childPermissionList;
}
